* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #8A2BE2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    text-align: center;
    background: white;
    border: 3px solid black;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 95vw;
    max-width: 900px;
}

.title-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

h1 {
    color: black;
    font-size: 2.5rem;
    margin-bottom: 0;
    text-shadow: none;
    border: 2px solid black;
    padding: 10px;
    border-radius: 10px;
    background: white;
}

.game-info {
    margin-bottom: 20px;
}

#winner-message {
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: none;
    min-height: 30px;
    border: 2px solid black;
    padding: 5px;
    border-radius: 10px;
    background: white;
}

#restart-btn {
    background: white;
    color: black;
    border: 3px solid black;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

#restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.level-select {
    margin-bottom: 20px;
    border: 3px solid black;
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.level-select label {
    color: black;
    font-size: 1.3rem;
    font-weight: bold;
    margin-right: 15px;
    text-shadow: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#level-dropdown {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border: 3px solid black;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 300px;
    text-align: center;
    color: #333;
}

#level-dropdown:hover {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#level-dropdown:focus {
    outline: none;
    border-color: #8A2BE2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

/* Style the dropdown options */
#level-dropdown option {
    background: white;
    color: #333;
    padding: 10px;
    font-weight: bold;
}

#level-dropdown option:hover {
    background: #8A2BE2;
    color: white;
}

#wall-hits {
    color: black;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: none;
    border: 2px solid black;
    padding: 5px;
    border-radius: 10px;
    background: white;
}

#next-level-btn {
    background: white;
    color: black;
    border: 3px solid black;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    margin-left: 10px;
}

#next-level-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#commentator-btn {
    background: white;
    color: black;
    border: 3px solid black;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    height: fit-content;
}

#commentator-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#commentator-btn.off {
    background: #f0f0f0;
    color: #666;
}

#gameCanvas {
    border: 3px solid black;
    border-radius: 15px;
    background: white;
    box-shadow: none;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.captions-container {
    margin-bottom: 20px;
    border: 3px solid black;
    padding: 15px;
    border-radius: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sound-visualizer {
    display: flex;
    align-items: end;
    gap: 3px;
    height: 40px;
    min-width: 50px;
}

.visualizer-bar {
    width: 6px;
    background: linear-gradient(180deg, #8A2BE2 0%, #9932CC 100%);
    border-radius: 3px;
    transition: height 0.1s ease;
    height: 5px;
}

.visualizer-bar.active {
    animation: visualizerPulse 0.3s ease-in-out infinite alternate;
}

@keyframes visualizerPulse {
    from { height: 5px; }
    to { height: 35px; }
}

.captions-text {
    flex: 1;
    color: black;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    line-height: 1.4;
    padding: 10px;
    background: white;
    border: 2px solid black;
    border-radius: 8px;
    min-height: 50px;
    display: flex;
    align-items: center;
}